<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表单-复选框</title>
</head>
<body>
<h3>表单-复选框</h3>

<form action="" method="get">
    <font color="RED" size="+2" face="楷体">爱好:</font>
    <!--checkbox是通过名字一样来表达是一组多选-->
    <input type="checkbox" name="cb_hobby" checked>吃
    <input type="checkbox" name="cb_hobby">喝
    <input type="checkbox" name="cb_hobby">玩
    <input type="checkbox" name="cb_hobby">乐
</form>
</body>
</html>